package com.anosine.gpsl.android.base;

import android.support.v4.app.Fragment;

/**
 * @Title: BaseFragment
 * @Package com.anosine.gpsl.android.base
 * @Description:
 * @author: sunny
 * @date: 2015-11-22
 * @version V1.0
 */
public class BaseFragment extends Fragment {
	/**
	 * @Title: showProgressInfo(final String s)
	 * @Description: 显示进度条
	 * @param: String s，显示的内容
	 * @return: 无
	 * @throws
	 */
	public final void showProgressInfo(final String s) {
		if (getActivity() != null && getActivity() instanceof BaseActivity) {
			((BaseActivity) getActivity()).showProgressInfo(s);
		}
	}

	/**
	 * @Title: dismissProgress()
	 * @Description: 让进度条消失
	 * @param: 无
	 * @return: 无
	 * @throws
	 */
	public final void dismissProgress() {
		if (getActivity() != null && getActivity() instanceof BaseActivity) {
			((BaseActivity) getActivity()).dismissProgress();
		}
	}
}
